Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 20 - QuickDraw 3D Mathematical Utilities / QuickDraw 3D Mathematical Utilities Reference
QuickDraw 3D Mathematical Utilities / Subtracting Points


Q3Point3D_Subtract

You can use the Q3Point3D_Subtract function to subtract one three-dimensional point from another.

TQ3Vector3D *Q3Point3D_Subtract (
const TQ3Point3D *p1, 
const TQ3Point3D *p2, 
TQ3Vector3D *result);
p1
A three-dimensional point.
p2
A three-dimensional point.
result
On exit, a three-dimensional vector that is the result of subtracting the point p2 from p1.
DESCRIPTION
The Q3Point3D_Subtract function returns, as its function result and in the result parameter, the three-dimensional vector that is the result of subtracting the point p2 from p1.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996